<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>设置一个 SNMP 对象</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.snmpset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmpset</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">snmpset</span> &mdash; <span class="dc-title">设置一个 SNMP 对象</span></p>

 </div>
 <div class="refsect1 unknown-seealsp" id="refsect1-function.snmpset-unknown-seealsp">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>snmpset</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hostname</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$community</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$object_id</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$type</code></span>
   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$timeout</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$retries</code></span>
  ]] ) : <span class="type">bool</span></div>


  <p class="para rdfs-comment">
   设置指定的 SNMP 对象的值，成功返回 <strong><code>TRUE</code></strong>，错误则返回 <strong><code>FALSE</code></strong>。
  </p>

  <p class="para">
   函数 <span class="function"><strong>snmpset()</strong></span> 用于设置由
   <code class="parameter">object_id</code> 指定的 SNMP
   对象的值。<code class="parameter">hostname</code> 
   指定 SNMP 代理，而 <code class="parameter">community</code>
   参数指定具有读权限的域。
  </p>
 </div>

</div></div></div></body></html>